<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('员工分类统计')"/>
    <th:block th:include="include :: layout-latest-css"/>
    <th:block th:include="include :: ztree-css"/>
    <th:block th:include="include :: select2-css"/>
</head>
<style>
    th{
        border: 1px solid #CCCCCC !important;
    }
</style>
<body class="gray-bg">
<div class="ui-layout-center">
    <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="user-form">
                    <div class="select-list">
                        <ul>
                            <li>
                                姓名：<input type="text" name="name"/>
                            </li>
                            <li>
                                工号：<input type="text" name="badge"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                        class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">

            </div>

            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
</div>

<th:block th:include="include :: footer"/>
<th:block th:include="include :: layout-latest-js"/>
<th:block th:include="include :: ztree-js"/>

<script th:inline="javascript">
    var prefix = ctx + "empInfo/oftenQuery";
    $(function () {
        var panehHidden = false;
        if ($(this).width() < 800) {
            panehHidden = true;
        }
        $('body').layout({initClosed: panehHidden, west__size: 350});
        queryData();
    });

    function queryData() {
        var options = {
            url: prefix + "/ygflStatistics",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            detailUrl: prefix + "/detail/{id}",
            escape: true,
            showPageGo: true,
            rememberSelected: true,
            height: $(window).height() - 120,
            sortOrder: "desc",
            modalName: "员工分类统计",
            columns: [
                [
                    {
                        field: 'depCode',
                        title: '部门代码',
                        rowspan: 2,
                        valign: "middle"

                    },
                    {
                        field: 'title',
                        title: '部门名称',
                        rowspan: 2,
                        valign: "middle"

                    },
                    {
                        field: 'CompIdTitle',
                        title: '所属公司',
                        rowspan: 2,
                        valign: "middle"

                    },
                    {
                        field: 'AdminIdTitle',
                        title: '上级部门',
                        rowspan: 2,
                        valign: "middle"

                    },
                    {
                        field: 'DepGradeTitle',
                        title: '部门级别',
                        rowspan: 2,
                        valign: "middle"
                    },
                    {
                        field: 'depTypeTitle',
                        title: '部门类型',
                        rowspan: 2,
                        valign: "middle"
                    },
                    {
                        title: '性别',
                        rowspan: 1,
                        colspan: 2,
                        align: "center"
                    },
                    {
                        title: '员工类型',
                        rowspan: 1,
                        colspan: 4,
                        align: "center"
                    },
                    {
                        title: '员工级别',
                        rowspan: 1,
                        colspan: 6,
                        align: "center"
                    },
                    {
                        title: '学历',
                        rowspan: 1,
                        colspan: 14,
                        align: "center"
                    },
                    {
                        title: '政治面貌',
                        rowspan: 1,
                        colspan: 13,
                        align: "center"
                    }
                ],
                [
                    {
                        field: 'nan',
                        title: '男',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'nv',
                        title: '女',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'zsyg',
                        title: '正式员工',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'syyg',
                        title: '试用员工',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'sxyg',
                        title: '实习员工',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'txfp',
                        title: '退休返聘',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'la',
                        title: 'Level A',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'lb',
                        title: 'Level B',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'lc',
                        title: 'Level C',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'ld',
                        title: 'Level D',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'le',
                        title: 'Level E',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'lf',
                        title: 'Level F',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'bshf',
                        title: '博士后（非全日制）',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'bsh',
                        title: '博士后',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'bsf',
                        title: '博士（非全日制）',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'bs',
                        title: '博士',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'ssf',
                        title: '硕士（非全日制）',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'ss',
                        title: '硕士',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'bkf',
                        title: '本科（非全日制）',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'bk',
                        title: '本科',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'zkf',
                        title: '专科（非全日制）',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'zk',
                        title: '专科',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'zzf',
                        title: '中专（非全日制）',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'zz',
                        title: '中专',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'gzjyx',
                        title: '高中及以下',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'zgdy',
                        title: '中共党员',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'zgybdy',
                        title: '中共预备党员',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'gqty',
                        title: '共青团员',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'mghy',
                        title: '民革会员',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'mmhy',
                        title: '民盟会员',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'mjhy',
                        title: '民建会员',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'mjinhy',
                        title: '民进会员',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'mgddy',
                        title: '农工党党员',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'zgddy',
                        title: '致公党党员',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'jsxssy',
                        title: '九三学社社员',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'tmmy',
                        title: '台盟盟员',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'wdpmzrs',
                        title: '无党派民主人',
                        align: "center",
                        rowspan: 1
                    },
                    {
                        field: 'qz',
                        title: '群众',
                        align: "center",
                        rowspan: 1
                    }
                ],
            ]
        };
        $.table.init(options);
    }


</script>
</body>
</html>